package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 文件存储对象 mall_storage
 *
 * @author tencreat
 * @date 2021-08-19
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_storage")
public class MallStorage extends BaseEntity<MallStorage>{
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 文件的唯一索引 */
    @Excel(name = "文件的唯一索引")
    @ApiModelProperty(value= "文件的唯一索引")
    @TableField("`key`")
    private String key;

    @ApiModelProperty(value= "类型ID")
    @TableField("`type_id`")
    private Long typeId;

    /** 文件名 */
    @Excel(name = "文件名")
    @ApiModelProperty(value= "文件名")
    @TableField("`name`")
    private String name;


    /** 文件类型 */
    @Excel(name = "文件类型")
    @ApiModelProperty(value= "文件类型")
    @TableField("`type`")
    private String type;


    /** 文件大小 */
    @Excel(name = "文件大小")
    @ApiModelProperty(value= "文件大小")
    @TableField("`size`")
    private Long size;


    /** 文件访问链接 */
    @Excel(name = "文件访问链接")
    @ApiModelProperty(value= "文件访问链接")
    @TableField("`url`")
    private String url;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;






    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
